package com.jwt.demo.db.mapper;

import com.jwt.demo.db.bean.UserRole;
import com.jwt.demo.db.bean.UserRoleExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserRoleMapper {
    /**
     * @mbg.generated generated automatically, do not modify!
     */
    long countByExample(UserRoleExample example);

    /**
     * @mbg.generated generated automatically, do not modify!
     */
    int deleteByPrimaryKey(Long id);

    /**
     * @mbg.generated generated automatically, do not modify!
     */
    int insert(UserRole row);

    /**
     * @mbg.generated generated automatically, do not modify!
     */
    int insertSelective(UserRole row);

    /**
     * @mbg.generated generated automatically, do not modify!
     */
    List<UserRole> selectByExample(UserRoleExample example);

    /**
     * @mbg.generated generated automatically, do not modify!
     */
    UserRole selectByPrimaryKey(Long id);

    /**
     * @mbg.generated generated automatically, do not modify!
     */
    int updateByPrimaryKeySelective(UserRole row);

    /**
     * @mbg.generated generated automatically, do not modify!
     */
    int updateByPrimaryKey(UserRole row);


    UserRole selectByUserId(@Param("userId") Long userId);
}